package jhlee42;

import java.util.Scanner;

public class J12Ratangle {

	public static void main(String[] args) {			
		
		Scanner sc = new Scanner(System.in);
		
		
		Ratangle rat1 = new Ratangle();
//		Ratangle rat2 = new Ratangle();
//		Ratangle rat3 = new Ratangle();
		
		
		rat1.width = sc.nextInt();
		rat1.height = sc.nextInt();
		rat1.color = sc.next();
		

		// 입력하고 결과 도출		
		
		System.out.println("--------------------");
		System.out.println(rat1.width);
		System.out.println(rat1.height);
		System.out.println(rat1.color);
		System.out.println(rat1.getAtea());
		System.out.println(rat1.getPerimeter());
	}

}


class Ratangle{
	
	String color; // 문자열 String	
	int width; // 실수 double
	int height;

	
//	public String getColor(){
//		return color;
//	}
	public int getAtea(){
		return width * height;
	}
	public int getPerimeter(){	
		return (width + height)*2;
	}
}
